package com.example.example;

import android.content.Context;
import android.graphics.Canvas;
import android.graphics.Color;
import android.graphics.Paint;
import android.util.AttributeSet;
import android.view.View;

/***
 * Created by Administrator on 2017/11/4.
 */

public class ExpandedImageView extends View {
    public ExpandedImageView(Context context) {
        super(context);
    }

    public ExpandedImageView(Context context, AttributeSet attrs) {
        super(context, attrs);
    }

    public ExpandedImageView(Context context, AttributeSet attrs, int defStyleAttr) {
        super(context, attrs, defStyleAttr);
    }

    @Override
    protected void onDraw(Canvas canvas) {
        Paint paint = new Paint();
        paint.setColor(Color.parseColor("#ffdf0034"));
        canvas.drawText("wodeshijie"
                +"wodeshijie"
                +"wodeshijie"
                +"wodeshijie"
                +"wodeshijie"
                +"wodeshijie"
                +"wodeshijie"
                +"wodeshijie"
                +"wodeshijie"
                +"wodeshijie"
                +"wodeshijie"
                +"wodeshijie"
                +"wodeshijie"
                +"wodeshijie"
                +"wodeshijie"
                +"wodeshijie"
                +"wodeshijie"
                +"wodeshijie"
                +"wodeshijie"
                +"wodeshijie"
                +"wodeshijie"
                +"wodeshijie"
                +"wodeshijie"
                +"wodeshijie"
                +"wodeshijie"
                +"wodeshijie"
                +"wodeshijie"
                +"wodeshijie"
                +"wodeshijie"
                +"wodeshijie"
                +"wodeshijie"
                +"wodeshijie"
                +"wodeshijie"
                +"wodeshijie"
                +"wodeshijie"
                +"wodeshijie"
                +"wodeshijie"
                +"wodeshijie"
                +"wodeshijie"
                +"wodeshijie"
                +"wodeshijie"
                +"wodeshijie"
                +"wodeshijie"
                +"wodeshijie"
                ,10,200,paint);
    }
}
